/*************************************************************************
	> File Name: EP21-1.c
	> Author: 
	> Mail: 
	> Created Time: 
 ************************************************************************/
#include <stdio.h>
#define MAX_N 100

int f[MAX_N + 5];
void keep_fac(int n) {
    int x = n, sum = 0;
    for (int i = 1; i * i <= n; i++) {
        if (n % i) continue;
        sum += i;
        sum += (i == n / i ? 0 : n / i);
    }
    f[x] = sum;
}

int main() {
    for (int i = 1; i <= MAX_N; i++) {
        keep_fac(i);
    }
    for (int i = 1; i <= MAX_N; i++) {
        printf("f[%d] = %d\n", i, f[i]);
    }
    return 0;
}
